projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aae2de
)
Fixed problem where one route would get split into many smaller routes
author
parkrrrr
<parkrrrr>
Tue, 2 Dec 2003 23:22:14 +0000
(23:22 +0000)
committer
parkrrrr
<parkrrrr>
Tue, 2 Dec 2003 23:22:14 +0000
(23:22 +0000)
saroute.c
patch
|
blob
|
history
diff --git
a/saroute.c
b/saroute.c
index 7d795e652c2d1c3df80c870b18f36ab22272445a..276967e8c3f26b72df6b1b298ac371f6521a6aa5 100644
(file)
--- a/
saroute.c
+++ b/
saroute.c
@@
-183,9
+183,11
@@
my_read(void)
* routing begins here
*/
count = ReadLong(infile);
-
while (count
) {
+
if ( count
) {
track_head = route_head_alloc();
route_add_head(track_head);
+ }
+ while (count) {
ReadShort(infile);
recsize = ReadLong(infile);
record = ReadRecord(infile, recsize);